package com.alan.netty.rpc.v1;

/**
 * @author weiBin
 * @date 2018/11/27
 */
public class RpcDemoServer {
    public static void main(String[] args) {
        RpcBuilder builder = new RpcBuilder();
        builder.publishService(CalculatorService.class,new CalculatorServiceImpl());
        RpcServer server = new RpcServer(8080);
        server.start(builder);
    }
}
